/*
 * FileBO.java
 *
 * Created on March 21, 2007, 5:27 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package finalintex2web;

/**
 *
 * @author craig
 */
public class FileBO{   
  
    private String id, name = null, extension = null;
    private byte[] file = null;
    private BackupBO backup = null;
    //icon
    private boolean indb = false, dirty = false;
    
    
    /** Creates a new instance of BackupBO */
    FileBO(String id) {
        this.setId(id);
    }
    public boolean isIndb() {
        return indb;
    }

    public void setIndb(boolean indb) {
        this.indb = indb;
    }

    public boolean isDirty() {
        return dirty;
    }

    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
        this.setDirty(true);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
         this.setDirty(true);
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
         this.setDirty(true);
    }

    public byte[] getFile() {
        return file;
    }

    public void setFile(byte[] file) {
        this.file = file;
         this.setDirty(true);
    }

    public BackupBO getBackup() {
        return backup;
    }

    public void setBackup(BackupBO backup) {
        this.backup = backup;
         this.setDirty(true);
    }
    
    
}